@import "index.skeleton.wxss";

page{
    height: 100%;
}

.head{
  height: 150rpx;
  display: flex;
  align-items: center;
  background: #fff;
  margin: 20rpx 0;
  padding: 0 20rpx;
  image{
    width: 80rpx;
    height: 80rpx;
    margin-right: 20rpx;
    border-radius: 100%;
  }
}

.container{
    //height: 100%;
    // display: flex;
    // flex-direction: column;
    // justify-content: flex-start;
    padding-bottom: 30rpx;
    .menu{
      display: flex;
      flex-wrap: wrap;
      padding: 30rpx;
      overflow: hidden;
      .menu-item{
        width: 120rpx;
        box-sizing: border-box;
        margin-bottom: 20rpx;
        margin-right: calc(calc(100% - 600rpx)/4);
        display: flex;
        flex-direction: column;
        align-items: center;
        &:nth-child(5n){
          margin-right: 0;
        }
        image{
          width: 90rpx;
          height: 90rpx;
          border-radius: 100%;
          overflow: hidden;
          margin-bottom: 10rpx;
        }
        text{
          font-size: 24rpx;
          color: #3D3D3D;
        }
      }
    }
    .good-list{
      margin-top: -20rpx;
      .list-item{
        padding: 10rpx 20rpx;
        display: flex;
        image{
          width: 160rpx;
          height: 160rpx;
          margin-right: 20rpx;
        }
        .goods{
          flex:1;
          overflow: hidden;
          .title{
            font-size: 28rpx;
            color: #333;
            margin-bottom: 8rpx;
          }
          .content{
            width: 100%;
            text{
              font-size: 12px;
              display: block;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
              color: #666;
            }
          }
        }
      }
    }
}

.banner{
    width: 100%;
    height: 334rpx;
    position: relative;
    background: #fafafa;
    z-index:1;
    swiper{
        height: 100%;
    }
    .img{
        width: 100%;
        height: 100%;
        image{
            width: 100%;
            height: 100%;
        }
    }
}

.menu-bg{
    background: #FFFFFF;
    border-top-left-radius: 21rpx;
    border-top-right-radius: 21rpx;
    position: relative;
    z-index: 2;
    margin-top: -21rpx;
    flex:1;
    overflow: hidden;
    padding-top: 20rpx;
    .menu{
        width: 690rpx;
        margin: 0 auto;
        .item{
            width: 100%;
            height: 128rpx;
            box-sizing: border-box;
            overflow: hidden;
            margin-bottom: 16rpx;
            background: #f9fbfe;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 30rpx;
            border-radius: 8rpx;
            .text{
                display: flex;
                align-items: center;
                image{
                    width: 70rpx;
                    height: 70rpx;
                    margin-right: 19rpx;
                }
                .label{
                    font-size: 32rpx;
                    color: #3D3D3D;
                    font-weight: bold;
                    text{
                        color: #8B8B8B;
                    }
                }
            }
            .next image{
                width: 26rpx;
                height: 26rpx;
            }
        }
    }
}

.sign-box{
    width: 620rpx;
    height: 320rpx;
    background: #FFFFFF;
    border-radius: 17rpx;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    .b{
        text-align: center;
        padding: 72rpx 0;
        color: #272727;
        font-weight: bold;
    }
    .buttons{
        display: flex;
        justify-content: space-between;
        padding: 0 59rpx;
        .p{
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32rpx;
            &:first-child{
                width: 236rpx;
                height: 79rpx;
                border-radius: 39rpx;
                border: 1rpx solid #039EE2;
                color: #039EE2;
            }
            &:last-child{
                width: 236rpx;
                height: 79rpx;
                background: #039EE2;
                border-radius: 39rpx;
                color: #fff;
            }
        }
    }
}

